package com.springclouddemo.configclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 何昌杰
 */
@RestController
public class DemoController {
    @Value("${profile}")
    private String profile;

    @GetMapping("/demo")
    public String demo(){
        return this.profile;
    }
}
